package csu.web.jpetstore.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class CartViewServlet extends HttpServlet {

    private static final String CART_VIEW = "/WEB-INF/jsp/cart/cart.jsp";

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //可添加判断，购物车为空。。。。
        req.getRequestDispatcher(CART_VIEW).forward(req,resp);

    }
}